package com.glamour.hlcity.common.util;

import java.util.List;
import java.util.Random;

import org.apache.commons.lang.math.RandomUtils;

/**
 * 随机函数
 * @author zhaoxing.liuzx
 *
 */

public class RandomUtil {
	
	public static <T> T getObject(List<T> list){
		Random r=new Random();
		int select=r.nextInt(list.size());
		return list.get(select);
	}
}
